home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 14 / hacker14.iso / programacao / visual / perl.exe / {app} / Library / Perl / changes < prev    next >
Encoding:
Text File  |  2002-11-30  |  67.8 KB  |  1,688 lines

  1. Perltidy Change Log
  2.      You can help Perltidy evolve into a better program.  If you
  3.      have hit a bug, unusual behavior, annoyance, or have a
  4.      suggested improvement, please send a note to perltidy at
  5.      users.sourceforge.net.  
  6.  
  7.   2002 11 30
  8.      -Implemented scalar attributes.  Thanks to Sean Tobin for noting this.
  9.  
  10.      -Fixed glitch introduced in previous release where -pre option
  11.      was not outputting a leading html <pre> tag.
  12.  
  13.      -Numerous minor improvements in vertical alignment, including the following:
  14.  
  15.      -Improved alignment of opening braces in many cases.  Needed for improved
  16.      switch/case formatting, and also suggested by Mark Olesen for sort/map/grep
  17.      formatting.  For example:
  18.  
  19.       OLD:
  20.         @modified =
  21.           map { $_->[0] }
  22.           sort { $a->[1] <=> $b->[1] }
  23.           map { [ $_, -M ] } @filenames;
  24.  
  25.       NEW:
  26.         @modified =
  27.           map  { $_->[0] }
  28.           sort { $a->[1] <=> $b->[1] }
  29.           map  { [ $_, -M ] } @filenames;
  30.  
  31.      -Eliminated alignments across unrelated statements. Example:
  32.       OLD:
  33.         $borrowerinfo->configure( -state => 'disabled' );
  34.         $borrowerinfo->grid( -col        => 1, -row => 0, -sticky => 'w' );
  35.  
  36.       NEW:  
  37.         $borrowerinfo->configure( -state => 'disabled' );
  38.         $borrowerinfo->grid( -col => 1, -row => 0, -sticky => 'w' );
  39.  
  40.       Thanks to Mark Olesen for suggesting this.
  41.  
  42.      -Improved alignement of '='s in certain cases.
  43.       Thanks to Norbert Gruener for sending an example.
  44.  
  45.      -Outdent-long-comments (-olc) has been re-instated as a default, since
  46.       it works much better now.  Use -nolc if you want to prevent it.
  47.  
  48.      -Added check for 'perltidy file.pl -o file.pl', which causes file.pl
  49.      to be lost. (The -b option should be used instead). Thanks to mreister
  50.      for reporting this problem.
  51.  
  52.   2002 11 06
  53.      -Switch/case or given/when syntax is now recognized.  Its vertical alignment
  54.      is not great yet, but it parses ok.  The words 'switch', 'case', 'given',
  55.      and 'when' are now treated as keywords.  If this causes trouble with older
  56.      code, we could introduce a switch to deactivate it.  Thanks to Stan Brown
  57.      and Jochen Schneider for recommending this.
  58.  
  59.      -Corrected error parsing sub attributes with call parameters.
  60.      Thanks to Marc Kerr for catching this.
  61.  
  62.      -Sub prototypes no longer need to be on the same line as sub names.  
  63.  
  64.      -a new flag -frm or --frames will cause html output to be in a
  65.      frame, with table of contents in the left panel and formatted source
  66.      in the right panel.  Try 'perltidy -html -frm somemodule.pm' for example.
  67.  
  68.      -The new default for -html formatting is to pass the pod through Pod::Html.
  69.      The result is syntax colored code within your pod documents. This can be
  70.      deactivated with -npod.  Thanks to those who have written to discuss this,
  71.      particularly Mark Olesen and Hugh Myers.
  72.  
  73.      -the -olc (--outdent-long-comments) option works much better.  It now outdents
  74.      groups of consecutive comments together, and by just the amount needed to
  75.      avoid having any one line exceeding the maximum line length.
  76.  
  77.      -block comments are now trimmed of trailing whitespace.
  78.  
  79.      -if a directory specified with -opath does not exist, it will be created.
  80.  
  81.      -a table of contents to packages and subs is output when -html is used.
  82.      Use -ntoc to prevent this. 
  83.  
  84.      -fixed an unusual bug in which a 'for' statement following a 'format'
  85.      statement was not correctly tokenized.  Thanks to Boris Zentner for
  86.      catching this.
  87.  
  88.      -Tidy.pm is no longer dependent on modules IO::Scalar and IO::ScalarArray.  
  89.      There were some speed issues.  Suggested by Joerg Walter.
  90.  
  91.      -The treatment of quoted wildcards (file globs) is now system-independent. 
  92.      For example
  93.  
  94.         perltidy 'b*x.p[lm]'
  95.  
  96.      would match box.pl, box.pm, brinx.pm under any operating system.  Of
  97.      course, anything unquoted will be subject to expansion by any shell.
  98.  
  99.      -default color for keywords under -html changed from 
  100.      SaddleBrown (#8B4513) to magenta4 (#8B008B).
  101.  
  102.      -fixed an arg parsing glitch in which something like:
  103.        perltidy quick-help
  104.      would trigger the help message and exit, rather than operate on the
  105.      file 'quick-help'.
  106.  
  107.   2002 09 22
  108.      -New option '-b' or '--backup-and-modify-in-place' will cause perltidy to
  109.      overwrite the original file with the tidied output file.  The original
  110.      file will be saved with a '.bak' extension (which can be changed with
  111.      -bext=s).  Thanks to Rudi Farkas for the suggestion.
  112.  
  113.      -An index to all subs is included at the top of -html output, unless
  114.      only the <pre> section is written.
  115.  
  116.      -Anchor lines of the form <a name="mysub"></a> are now inserted at key points
  117.      in html output, such as before sub definitions, for the convenience of
  118.      postprocessing scripts.  Suggested by Howard Owen.
  119.  
  120.      -The cuddled-else (-ce) flag now also makes cuddled continues, like
  121.      this:
  122.  
  123.         while ( ( $pack, $file, $line ) = caller( $i++ ) ) {
  124.            # bla bla
  125.         } continue {
  126.             $prevpack = $pack;
  127.         }
  128.  
  129.      Suggested by Simon Perreault.  
  130.  
  131.      -Fixed bug in which an extra blank line was added before an =head or 
  132.      similar pod line after an __END__ or __DATA__ line each time 
  133.      perltidy was run.  Also, an extra blank was being added after
  134.      a terminal =cut.  Thanks to Mike Birdsall for reporting this.
  135.  
  136.   2002 08 26
  137.      -Fixed bug in which space was inserted in a hyphenated hash key:
  138.         my $val = $myhash{USER-NAME};
  139.       was converted to:
  140.         my $val = $myhash{USER -NAME}; 
  141.       Thanks to an anonymous bug reporter at sourceforge.
  142.  
  143.      -Fixed problem with the '-io' ('--indent-only') where all lines 
  144.       were double spaced.  Thanks to Nick Andrew for reporting this bug.
  145.  
  146.      -Fixed tokenization error in which something like '-e1' was 
  147.       parsed as a number. 
  148.  
  149.      -Corrected a rare problem involving older perl versions, in which 
  150.       a line break before a bareword caused problems with 'use strict'.
  151.       Thanks to Wolfgang Weisselberg for noting this.
  152.  
  153.      -More syntax error checking added.
  154.  
  155.      -Outdenting labels (-ola) has been made the default, in order to follow the
  156.       perlstyle guidelines better.  It's probably a good idea in general, but
  157.       if you do not want this, use -nola in your .perltidyrc file.
  158.   
  159.      -Updated rules for padding logical expressions to include more cases.
  160.       Thanks to Wolfgang Weisselberg for helpful discussions.
  161.  
  162.      -Added new flag -osbc (--outdent-static-block-comments) which will
  163.       outdent static block comments by 2 spaces (or whatever -ci equals).
  164.       Requested by Jon Robison.
  165.  
  166.   2002 04 25
  167.      -Corrected a bug, introduced in the previous release, in which some
  168.       closing side comments (-csc) could have incorrect text.  This is
  169.       annoying but will be correct the next time perltidy is run with -csc.
  170.  
  171.      -Implemented XHTML patch submitted by Ville SkyttΣ.
  172.  
  173.      -Fixed bug where whitespace was being removed between 'Bar' and '()' 
  174.       in a use statement like:
  175.  
  176.            use Foo::Bar ();
  177.  
  178.       Thanks to Ville SkyttΣ for reporting this.
  179.  
  180.      -Whenever possible, if a logical expression is broken with leading
  181.       '&&', '||', 'and', or 'or', then the leading line will be padded
  182.       with additional space to produce alignment.  This has been on the
  183.       todo list for a long time; thanks to Frank Steinhauer for reminding
  184.       me to do it.  Notice the first line after the open parens here:
  185.  
  186.             OLD: perltidy -lp
  187.             if (
  188.                  !param("rules.to.$linecount")
  189.                  && !param("rules.from.$linecount")
  190.                  && !param("rules.subject.$linecount")
  191.                  && !(
  192.                        param("rules.fieldname.$linecount")
  193.                        && param("rules.fieldval.$linecount")
  194.                  )
  195.                  && !param("rules.size.$linecount")
  196.                  && !param("rules.custom.$linecount")
  197.               )
  198.  
  199.             NEW: perltidy -lp
  200.             if (
  201.                     !param("rules.to.$linecount")
  202.                  && !param("rules.from.$linecount")
  203.                  && !param("rules.subject.$linecount")
  204.                  && !(
  205.                           param("rules.fieldname.$linecount")
  206.                        && param("rules.fieldval.$linecount")
  207.                  )
  208.                  && !param("rules.size.$linecount")
  209.                  && !param("rules.custom.$linecount")
  210.               )
  211.  
  212.   2002 04 16
  213.      -Corrected a mistokenization of variables for a package with a name
  214.       equal to a perl keyword.  For example: 
  215.  
  216.          my::qx();
  217.          package my;
  218.          sub qx{print "Hello from my::qx\n";}
  219.  
  220.       In this case, the leading 'my' was mistokenized as a keyword, and a
  221.       space was being place between 'my' and '::'.  This has been
  222.       corrected.  Thanks to Martin Sluka for discovering this. 
  223.  
  224.      -A new flag -bol (--break-at-old-logic-breakpoints)
  225.       has been added to control whether containers with logical expressions
  226.       should be broken open.  This is the default.
  227.  
  228.      -A new flag -bok (--break-at-old-keyword-breakpoints)
  229.       has been added to follow breaks at old keywords which return lists,
  230.       such as sort and map.  This is the default.
  231.  
  232.      -A new flag -bot (--break-at-old-trinary-breakpoints) has been added to
  233.       follow breaks at trinary (conditional) operators.  This is the default.
  234.  
  235.      -A new flag -cab=n has been added to control breaks at commas after
  236.       '=>' tokens.  The default is n=1, meaning break unless this breaks
  237.       open an existing on-line container.
  238.  
  239.      -A new flag -boc has been added to allow existing list formatting
  240.       to be retained.  (--break-at-old-comma-breakpoints).  See updated manual.
  241.  
  242.      -A new flag -iob (--ignore-old-breakpoints) has been added to
  243.       prevent the locations of old breakpoints from influencing the output
  244.       format.
  245.  
  246.      -Corrected problem where nested parentheses were not getting full
  247.       indentation.  This has been on the todo list for some time; thanks 
  248.       to Axel Rose for a snippet demonstrating this issue.
  249.  
  250.                 OLD: inner list is not indented
  251.                 $this->sendnumeric(
  252.                     $this->server,
  253.                     (
  254.                       $ret->name,        $user->username, $user->host,
  255.                     $user->server->name, $user->nick,     "H"
  256.                     ),
  257.                 );
  258.  
  259.                 NEW:
  260.                 $this->sendnumeric(
  261.                     $this->server,
  262.                     (
  263.                         $ret->name,          $user->username, $user->host,
  264.                         $user->server->name, $user->nick,     "H"
  265.                     ),
  266.                 );
  267.  
  268.      -Code cleaned up by removing the following unused, undocumented flags.
  269.       They should not be in any .perltidyrc files because they were just
  270.       experimental flags which were never documented.  Most of them placed
  271.       artificial limits on spaces, and Wolfgang Weisselberg convinced me that
  272.       most of them they do more harm than good by causing unexpected results.
  273.  
  274.       --maximum-continuation-indentation (-mci)
  275.       --maximum-whitespace-columns
  276.       --maximum-space-to-comment (-xsc)
  277.       --big-space-jump (-bsj)
  278.  
  279.      -Pod file 'perltidy.pod' has been appended to the script 'perltidy', and
  280.       Tidy.pod has been append to the module 'Tidy.pm'.  Older MakeMaker's
  281.       were having trouble.
  282.  
  283.      -A new flag -isbc has been added for more control on comments. This flag
  284.       has the effect that if there is no leading space on the line, then the
  285.       comment will not be indented, and otherwise it may be.  If both -ibc and
  286.       -isbc are set, then -isbc takes priority.  Thanks to Frank Steinhauer
  287.       for suggesting this.
  288.  
  289.      -A new document 'stylekey.pod' has been created to quickly guide new users
  290.       through the maze of perltidy style parameters.  An html version is 
  291.       on the perltidy web page.  Take a look! It should be very helpful.
  292.  
  293.      -Parameters for controlling 'vertical tightness' have been added:
  294.       -vt and -vtc are the main controls, but finer control is provided
  295.       with -pvt, -pcvt, -bvt, -bcvt, -sbvt, -sbcvt.  Block brace vertical
  296.       tightness controls have also been added.
  297.       See updated manual and also see 'stylekey.pod'. Simple examples:
  298.  
  299.         # perltidy -lp -vt=1 -vtc=1
  300.         @month_of_year = ( 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
  301.                            'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' );
  302.  
  303.         # perltidy -lp -vt=1 -vtc=0
  304.         @month_of_year = ( 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
  305.                            'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
  306.         );
  307.  
  308.      -Lists which do not format well in uniform columns are now better
  309.       identified and formated.
  310.  
  311.         OLD:
  312.         return $c->create( 'polygon', $x, $y, $x + $ruler_info{'size'},
  313.             $y + $ruler_info{'size'}, $x - $ruler_info{'size'},
  314.             $y + $ruler_info{'size'} );
  315.  
  316.         NEW:
  317.         return $c->create(
  318.             'polygon', $x, $y,
  319.             $x + $ruler_info{'size'},
  320.             $y + $ruler_info{'size'},
  321.             $x - $ruler_info{'size'},
  322.             $y + $ruler_info{'size'}
  323.         );
  324.  
  325.         OLD:
  326.           radlablist($f1, pad('Initial', $p), $b->{Init}->get_panel_ref, 'None ',
  327.                      'None', 'Default', 'Default', 'Simple', 'Simple');
  328.         NEW:
  329.           radlablist($f1,
  330.                      pad('Initial', $p),
  331.                      $b->{Init}->get_panel_ref,
  332.                      'None ', 'None', 'Default', 'Default', 'Simple', 'Simple');
  333.  
  334.      -Corrected problem where an incorrect html filename was generated for 
  335.       external calls to Tidy.pm module.  Fixed incorrect html title when
  336.       Tidy.pm is called with IO::Scalar or IO::Array source.
  337.  
  338.      -Output file permissons are now set as follows.  An output script file
  339.       gets the same permission as the input file, except that owner
  340.       read/write permission is added (otherwise, perltidy could not be
  341.       rerun).  Html output files use system defaults.  Previously chmod 0755
  342.       was used in all cases.  Thanks to Mark Olesen for bringing this up.
  343.  
  344.      -Missing semicolons will not be added in multi-line blocks of type
  345.       sort, map, or grep.  This brings perltidy into closer agreement
  346.       with common practice.  Of course, you can still put semicolons 
  347.       there if you like.  Thanks to Simon Perreault for a discussion of this.
  348.  
  349.      -Most instances of extra semicolons are now deleted.  This is
  350.       particularly important if the -csc option is used.  Thanks to Wolfgang
  351.       Weisselberg for noting this.  For example, the following line
  352.       (produced by 'h2xs' :) has an extra semicolon which will now be
  353.       removed:
  354.  
  355.          BEGIN { plan tests => 1 };
  356.  
  357.      -New parameter -csce (--closing-side-comment-else-flag) can be used
  358.       to control what text is appended to 'else' and 'elsif' blocks.
  359.       Default is to just add leading 'if' text to an 'else'.  See manual.
  360.  
  361.      -The -csc option now labels 'else' blocks with additinal information
  362.       from the opening if statement and elsif statements, if space.
  363.       Thanks to Wolfgang Weisselberg for suggesting this.
  364.  
  365.      -The -csc option will now remove any old closing side comments
  366.       below the line interval threshold. Thanks to Wolfgang Weisselberg for
  367.       suggesting this.
  368.  
  369.      -The abbreviation feature, which was broken in the previous version,
  370.       is now fixed.  Thanks to Michael Cartmell for noting this.
  371.  
  372.      -Vertical alignment is now done for '||='  .. somehow this was 
  373.       overlooked.
  374.  
  375.   2002 02 25
  376.      -This version uses modules for the first time, and a standard perl
  377.       Makefile.PL has been supplied.  However, perltidy may still be
  378.       installed as a single script, without modules.  See INSTALL for
  379.       details.
  380.  
  381.      -The man page 'perl2web' has been merged back into the main 'perltidy'
  382.       man page to simplify installation.  So you may remove that man page
  383.       if you have an older installation.
  384.  
  385.      -Added patch from Axel Rose for MacPerl.  The patch prompts the user
  386.       for command line arguments before calling the module 
  387.       Perl::Tidy::perltidy.
  388.  
  389.      -Corrected bug with '-bar' which was introduced in the previous
  390.       version.  A closing block brace was being indented.  Thanks to
  391.       Alexandros M Manoussakis for reporting this.
  392.  
  393.      -New parameter '--entab-leading-whitespace=n', or '-et=n', has been
  394.       added for those who prefer tabs.  This behaves different from the
  395.       existing '-t' parameter; see updated man page.  Suggested by Mark
  396.       Olesen.
  397.  
  398.      -New parameter '--perl-syntax-check-flags=s'  or '-pcsf=s' can be
  399.       used to change the flags passed to perltidy in a syntax check.
  400.       See updated man page.  Suggested by Mark Olesen. 
  401.  
  402.      -New parameter '--output-path=s'  or '-opath=s' will cause output
  403.       files to be placed in directory s.  See updated man page.  Thanks for
  404.       Mark Olesen for suggesting this.
  405.  
  406.      -New parameter --dump-profile (or -dpro) will dump to
  407.       standard output information about the search for a
  408.       configuration file, the name of whatever configuration file
  409.       is selected, and its contents.  This should help debugging
  410.       config files, especially on different Windows systems.
  411.  
  412.      -The -w parameter now notes possible errors of the form:
  413.  
  414.             $comment = s/^\s*(\S+)\..*/$1/;   # trim whitespace
  415.  
  416.      -Corrections added for a leading ':' and for leaving a leading 'tcsh'
  417.       line untouched.  Mark Olesen reported that lines of this form were
  418.       accepted by perl but not by perltidy:
  419.  
  420.             : # use -*- perl -*-
  421.             eval 'exec perl -wS $0 "$@"'  # shell should exec 'perl'
  422.             unless 1;                     # but Perl should skip this one
  423.  
  424.       Perl will silently swallow a leading colon on line 1 of a
  425.       script, and now perltidy will do likewise.  For example,
  426.       this is a valid script, provided that it is the first line,
  427.       but not otherwise:
  428.  
  429.             : print "Hello World\n";
  430.   
  431.       Also, perltidy will now mark a first line with leading ':' followed by
  432.       '#' as type SYSTEM (just as a #!  line), not to be formatted.
  433.  
  434.      -List formatting improved for certain lists with special
  435.       initial terms, such as occur with 'printf', 'sprintf',
  436.       'push', 'pack', 'join', 'chmod'.  The special initial term is
  437.       now placed on a line by itself.  For example, perltidy -gnu
  438.  
  439.          OLD:
  440.             $Addr = pack(
  441.                          "C4",                hex($SourceAddr[0]),
  442.                          hex($SourceAddr[1]), hex($SourceAddr[2]),
  443.                          hex($SourceAddr[3])
  444.                          );
  445.  
  446.          NEW:
  447.             $Addr = pack("C4",
  448.                          hex($SourceAddr[0]), hex($SourceAddr[1]),
  449.                          hex($SourceAddr[2]), hex($SourceAddr[3]));
  450.  
  451.           OLD:
  452.                 push (
  453.                       @{$$self{states}}, '64', '66', '68',
  454.                       '70',              '72', '74', '76',
  455.                       '78',              '80', '82', '84',
  456.                       '86',              '88', '90', '92',
  457.                       '94',              '96', '98', '100',
  458.                       '102',             '104'
  459.                       );
  460.  
  461.           NEW:
  462.                 push (
  463.                       @{$$self{states}},
  464.                       '64', '66', '68', '70', '72',  '74',  '76',
  465.                       '78', '80', '82', '84', '86',  '88',  '90',
  466.                       '92', '94', '96', '98', '100', '102', '104'
  467.                       );
  468.  
  469.      -Lists of complex items, such as matricies, are now detected
  470.       and displayed with just one item per row:
  471.  
  472.         OLD:
  473.         $this->{'CURRENT'}{'gfx'}{'MatrixSkew'} = Text::PDF::API::Matrix->new(
  474.             [ 1, tan( deg2rad($a) ), 0 ], [ tan( deg2rad($b) ), 1, 0 ],
  475.             [ 0, 0, 1 ]
  476.         );
  477.  
  478.         NEW:
  479.         $this->{'CURRENT'}{'gfx'}{'MatrixSkew'} = Text::PDF::API::Matrix->new(
  480.             [ 1,                  tan( deg2rad($a) ), 0 ],
  481.             [ tan( deg2rad($b) ), 1,                  0 ],
  482.             [ 0,                  0,                  1 ]
  483.         );
  484.  
  485.      -The perl syntax check will be turned off for now when input is from
  486.       standard input or standard output.  The reason is that this requires
  487.       temporary files, which has produced far too many problems during
  488.       Windows testing.  For example, the POSIX module under Windows XP/2000
  489.       creates temporary names in the root directory, to which only the
  490.       administrator should have permission to write.
  491.  
  492.      -Merged patch sent by Yves Orton to handle appropriate
  493.       configuration file locations for different Windows varieties
  494.       (2000, NT, Me, XP, 95, 98).
  495.  
  496.      -Added patch to properly handle a for/foreach loop without
  497.       parens around a list represented as a qw.  I didn't know this
  498.       was possible until Wolfgang Weisselberg pointed it out:
  499.  
  500.             foreach my $key qw\Uno Due Tres Quadro\ {
  501.                 print "Set $key\n";
  502.             }
  503.  
  504.       But Perl will give a syntax error without the $ variable; ie this will
  505.       not work:
  506.  
  507.             foreach qw\Uno Due Tres Quadro\ {
  508.                 print "Set $_\n";
  509.             }
  510.  
  511.      -Merged Windows version detection code sent by Yves Orton.  Perltidy
  512.       now automatically turns off syntax checking for Win 9x/ME versions,
  513.       and this has solved a lot of robustness problems.  These systems 
  514.       cannot reliably handle backtick operators.  See man page for
  515.       details.
  516.   
  517.      -Merged VMS filename handling patch sent by Michael Cartmell.  (Invalid
  518.       output filenames were being created in some cases). 
  519.  
  520.      -Numerous minor improvements have been made for -lp style indentation.
  521.  
  522.      -Long C-style 'for' expressions will be broken after each ';'.   
  523.  
  524.       'perltidy -gnu' gives:
  525.  
  526.         OLD:
  527.         for ($status = $db->seq($key, $value, R_CURSOR()) ; $status == 0
  528.              and $key eq $origkey ; $status = $db->seq($key, $value, R_NEXT())) 
  529.  
  530.         NEW:
  531.         for ($status = $db->seq($key, $value, R_CURSOR()) ;
  532.              $status == 0 and $key eq $origkey ;
  533.              $status = $db->seq($key, $value, R_NEXT()))
  534.  
  535.      -For the -lp option, a single long term within parens
  536.       (without commas) now has better alignment.  For example,
  537.       perltidy -gnu
  538.  
  539.                 OLD:
  540.                 $self->throw("Must specify a known host, not $location,"
  541.                       . " possible values ("
  542.                       . join (",", sort keys %hosts) . ")");
  543.  
  544.                 NEW:
  545.                 $self->throw("Must specify a known host, not $location,"
  546.                              . " possible values ("
  547.                              . join (",", sort keys %hosts) . ")");
  548.  
  549.   2001 12 31
  550.      -This version is about 20 percent faster than the previous
  551.       version as a result of optimization work.  The largest gain
  552.       came from switching to a dispatch hash table in the
  553.       tokenizer.
  554.  
  555.      -perltidy -html will check to see if HTML::Entities is
  556.       installed, and if so, it will use it to encode unsafe
  557.       characters.
  558.  
  559.      -Added flag -oext=ext to change the output file extension to
  560.       be different from the default ('tdy' or 'html').  For
  561.       example:
  562.  
  563.         perltidy -html -oext=htm filename
  564.  
  565.      will produce filename.htm
  566.  
  567.      -Added flag -cscw to issue warnings if a closing side comment would replace
  568.      an existing, different side comments.  See the man page for details.
  569.      Thanks to Peter Masiar for helpful discussions.
  570.  
  571.      -Corrected tokenization error of signed hex/octal/binary numbers. For
  572.      example, the first hex number below would have been parsed correctly
  573.      but the second one was not:
  574.         if ( ( $tmp >= 0x80_00_00 ) || ( $tmp < -0x80_00_00 ) ) { }
  575.  
  576.      -'**=' was incorrectly tokenized as '**' and '='.  This only
  577.          caused a problem with the -extrude opton.
  578.  
  579.      -Corrected a divide by zero when -extrude option is used
  580.  
  581.      -The flag -w will now contain all errors reported by 'perl -c' on the
  582.      input file, but otherwise they are not reported.  The reason is that
  583.      perl will report lots of problems and syntax errors which are not of
  584.      interest when only a small snippet is being formatted (such as missing
  585.      modules and unknown bare words).  Perltidy will always report all
  586.      significant syntax errors that it finds, such as unbalanced braces,
  587.      unless the -q (quiet) flag is set.
  588.  
  589.      -Merged modifications created by Hugh Myers into perltidy.
  590.       These include a 'streamhandle' routine which allows perltidy
  591.       as a module to operate on input and output arrays and strings
  592.       in addition to files.  Documentation and new packaging as a
  593.       module should be ready early next year; This is an elegant,
  594.       powerful update; many thanks to Hugh for contributing it.
  595.  
  596.   2001 11 28
  597.      -added a tentative patch which tries to keep any existing breakpoints
  598.      at lines with leading keywords map,sort,eval,grep. The idea is to
  599.      improve formatting of sequences of list operations, as in a schwartzian
  600.      transform.  Example:
  601.  
  602.         INPUT:
  603.         my @sorted = map { $_->[0] }
  604.                      sort { $a->[1] <=> $b->[1] }
  605.                      map { [ $_, rand ] } @list;
  606.  
  607.         OLD:
  608.         my @sorted =
  609.           map { $_->[0] } sort { $a->[1] <=> $b->[1] } map { [ $_, rand ] } @list;
  610.  
  611.         NEW:
  612.         my @sorted = map { $_->[0] }
  613.           sort { $a->[1] <=> $b->[1] }
  614.           map { [ $_, rand ] } @list;
  615.  
  616.       The new alignment is not as nice as the input, but this is an improvement.
  617.       Thanks to Yves Orton for this suggestion.
  618.  
  619.      -modified indentation logic so that a line with leading opening paren,
  620.      brace, or square bracket will never have less indentation than the
  621.      line with the corresponding opening token.  Here's a simple example:
  622.  
  623.         OLD:
  624.             $mw->Button(
  625.                 -text    => "New Document",
  626.                 -command => \&new_document
  627.               )->pack(
  628.                 -side   => 'bottom',
  629.                 -anchor => 'e'
  630.             );
  631.  
  632.         Note how the closing ');' is lined up with the first line, even
  633.         though it closes a paren in the 'pack' line.  That seems wrong.
  634.  
  635.         NEW:
  636.             $mw->Button(
  637.                 -text    => "New Document",
  638.                 -command => \&new_document
  639.               )->pack(
  640.                 -side   => 'bottom',
  641.                 -anchor => 'e'
  642.               );
  643.  
  644.        This seems nicer: you can up-arrow with an editor and arrive at the
  645.        opening 'pack' line.
  646.  
  647.      -corrected minor glitch in which cuddled else (-ce) did not get applied
  648.      to an 'unless' block, which should look like this:
  649.  
  650.             unless ($test) {
  651.  
  652.             } else {
  653.  
  654.             }
  655.  
  656.       Thanks to Jeremy Mates for reporting this.
  657.  
  658.      -The man page has been reorganized to parameters easier to find.
  659.  
  660.      -Added check for multiple definitions of same subroutine.  It is easy
  661.       to introduce this problem when cutting and pasting. Perl does not
  662.       complain about it, but it can lead to disaster.
  663.  
  664.      -The command -pro=filename  or -profile=filename may be used to specify a
  665.       configuration file which will override the default name of .perltidyrc.
  666.       There must not be a space on either side of the '=' sign.  I needed
  667.       this to be able to easily test perltidy with a variety of different
  668.       configuration files.
  669.  
  670.      -Side comment alignment has been improved somewhat across frequent level
  671.       changes, as in short if/else blocks.  Thanks to Wolfgang Weisselberg 
  672.       for pointing out this problem.  For example:
  673.     
  674.         OLD:
  675.         if ( ref $self ) {    # Called as a method
  676.             $format = shift;
  677.         }
  678.         else {    # Regular procedure call
  679.             $format = $self;
  680.             undef $self;
  681.         }
  682.  
  683.         NEW:
  684.         if ( ref $self ) {    # Called as a method
  685.             $format = shift;
  686.         }
  687.         else {                # Regular procedure call
  688.             $format = $self;
  689.             undef $self;
  690.         }
  691.  
  692.      -New command -ssc (--static-side-comment) and related command allows
  693.       side comments to be spaced close to preceding character.  This is
  694.       useful for displaying commented code as side comments.
  695.  
  696.      -New command -csc (--closing-side-comment) and several related
  697.       commands allow comments to be added to (and deleted from) any or all
  698.       closing block braces.  This can be useful if you have to maintain large
  699.       programs, especially those that you didn't write.  See updated man page.
  700.       Thanks to Peter Masiar for this suggestion.  For a simple example:
  701.  
  702.             perltidy -csc
  703.  
  704.             sub foo {
  705.                 if ( !defined( $_[0] ) ) {
  706.                     print("Hello, World\n");
  707.                 }
  708.                 else {
  709.                     print( $_[0], "\n" );
  710.                 }
  711.             } ## end sub foo
  712.  
  713.       This added '## end sub foo' to the closing brace.  
  714.       To remove it, perltidy -ncsc.
  715.  
  716.      -New commands -ola, for outdenting labels, and -okw, for outdenting
  717.       selected control keywords, were implemented.  See the perltidy man
  718.       page for details.  Thanks to Peter Masiar for this suggestion.
  719.  
  720.      -Hanging side comment change: a comment will not be considered to be a
  721.       hanging side comment if there is no leading whitespace on the line.
  722.       This should improve the reliability of identifying hanging side comments.
  723.       Thanks to Peter Masiar for this suggestion.
  724.  
  725.      -Two new commands for outdenting, -olq (outdent-long-quotes) and -olc
  726.       (outdent-long-comments), have been added.  The original -oll
  727.       (outdent-long-lines) remains, and now is an abbreviation for -olq and -olc.
  728.       The new default is just -olq.  This was necessary to avoid inconsistency with
  729.       the new static block comment option.
  730.  
  731.      -Static block comments:  to provide a way to display commented code
  732.       better, the convention is used that comments with a leading '##' should
  733.       not be formatted as usual.  Please see '-sbc' (or '--static-block-comment')
  734.       for documentation.  It can be deactivated with with -nsbc, but
  735.       should not normally be necessary. Thanks to Peter Masiar for this 
  736.       suggestion.
  737.  
  738.      -Two changes were made to help show structure of complex lists:
  739.       (1) breakpoints are forced after every ',' in a list where any of
  740.       the list items spans multiple lines, and
  741.       (2) List items which span multiple lines now get continuation indentation.
  742.  
  743.       The following example illustrates both of these points.  Many thanks to
  744.       Wolfgang Weisselberg for this snippet and a discussion of it; this is a
  745.       significant formatting improvement. Note how it is easier to see the call
  746.       parameters in the NEW version:
  747.  
  748.         OLD:
  749.         assert( __LINE__, ( not defined $check )
  750.             or ref $check
  751.             or $check eq "new"
  752.             or $check eq "old", "Error in parameters",
  753.             defined $old_new ? ( ref $old_new ? ref $old_new : $old_new ) : "undef",
  754.             defined $db_new  ? ( ref $db_new  ? ref $db_new  : $db_new )  : "undef",
  755.             defined $old_db ? ( ref $old_db ? ref $old_db : $old_db ) : "undef" );
  756.  
  757.         NEW: 
  758.         assert(
  759.             __LINE__,
  760.             ( not defined $check )
  761.               or ref $check
  762.               or $check eq "new"
  763.               or $check eq "old",
  764.             "Error in parameters",
  765.             defined $old_new ? ( ref $old_new ? ref $old_new : $old_new ) : "undef",
  766.             defined $db_new  ? ( ref $db_new  ? ref $db_new  : $db_new )  : "undef",
  767.             defined $old_db  ? ( ref $old_db  ? ref $old_db  : $old_db )  : "undef"
  768.         );
  769.  
  770.         Another example shows how this helps displaying lists:
  771.  
  772.         OLD:
  773.         %{ $self->{COMPONENTS} } = (
  774.             fname =>
  775.             { type => 'name', adj => 'yes', font => 'Helvetica', 'index' => 0 },
  776.             street =>
  777.             { type => 'road', adj => 'yes', font => 'Helvetica', 'index' => 2 },
  778.         );
  779.  
  780.         The structure is clearer with the added indentation:
  781.     
  782.         NEW:
  783.         %{ $self->{COMPONENTS} } = (
  784.             fname =>
  785.               { type => 'name', adj => 'yes', font => 'Helvetica', 'index' => 0 },
  786.             street =>
  787.               { type => 'road', adj => 'yes', font => 'Helvetica', 'index' => 2 },
  788.         );
  789.  
  790.         -The structure of nested logical expressions is now displayed better.
  791.         Thanks to Wolfgang Weisselberg for helpful discussions.  For example,
  792.         note how the status of the final 'or' is displayed in the following:
  793.  
  794.         OLD:
  795.         return ( !null($op)
  796.               and null( $op->sibling )
  797.               and $op->ppaddr eq "pp_null"
  798.               and class($op) eq "UNOP"
  799.               and ( ( $op->first->ppaddr =~ /^pp_(and|or)$/
  800.                 and $op->first->first->sibling->ppaddr eq "pp_lineseq" )
  801.                 or ( $op->first->ppaddr eq "pp_lineseq"
  802.                     and not null $op->first->first->sibling
  803.                     and $op->first->first->sibling->ppaddr eq "pp_unstack" ) ) );
  804.  
  805.         NEW:
  806.         return (
  807.             !null($op)
  808.               and null( $op->sibling )
  809.               and $op->ppaddr eq "pp_null"
  810.               and class($op) eq "UNOP"
  811.               and (
  812.                 (
  813.                     $op->first->ppaddr =~ /^pp_(and|or)$/
  814.                     and $op->first->first->sibling->ppaddr eq "pp_lineseq"
  815.                 )
  816.                 or ( $op->first->ppaddr eq "pp_lineseq"
  817.                     and not null $op->first->first->sibling
  818.                     and $op->first->first->sibling->ppaddr eq "pp_unstack" )
  819.               )
  820.         );
  821.  
  822.        -A break will always be put before a list item containing a comma-arrow.
  823.        This will improve formatting of mixed lists of this form:
  824.  
  825.             OLD:
  826.             $c->create(
  827.                 'text', 225, 20, -text => 'A Simple Plot',
  828.                 -font => $font,
  829.                 -fill => 'brown'
  830.             );
  831.  
  832.             NEW:
  833.             $c->create(
  834.                 'text', 225, 20,
  835.                 -text => 'A Simple Plot',
  836.                 -font => $font,
  837.                 -fill => 'brown'
  838.             );
  839.  
  840.       -For convenience, the command -dac (--delete-all-comments) now also
  841.       deletes pod.  Likewise, -tac (--tee-all-comments) now also sends pod
  842.       to a '.TEE' file.  Complete control over the treatment of pod and
  843.       comments is still possible, as described in the updated help message 
  844.       and man page.
  845.  
  846.       -The logic which breaks open 'containers' has been rewritten to be completely
  847.       symmetric in the following sense: if a line break is placed after an opening
  848.       {, [, or (, then a break will be placed before the corresponding closing
  849.       token.  Thus, a container either remains closed or is completely cracked
  850.       open.
  851.  
  852.       -Improved indentation of parenthesized lists.  For example, 
  853.  
  854.                 OLD:
  855.                 $GPSCompCourse =
  856.                   int(
  857.                   atan2( $GPSTempCompLong - $GPSLongitude,
  858.                   $GPSLatitude - $GPSTempCompLat ) * 180 / 3.14159265 );
  859.  
  860.                 NEW:
  861.                 $GPSCompCourse = int(
  862.                     atan2(
  863.                         $GPSTempCompLong - $GPSLongitude,
  864.                         $GPSLatitude - $GPSTempCompLat
  865.                       ) * 180 / 3.14159265
  866.                 );
  867.  
  868.        Further improvements will be made in future releases.
  869.  
  870.       -Some improvements were made in formatting small lists.
  871.  
  872.       -Correspondence between Input and Output line numbers reported in a 
  873.        .LOG file should now be exact.  They were sometimes off due to the size
  874.        of intermediate buffers.
  875.  
  876.       -Corrected minor tokenization error in which a ';' in a foreach loop
  877.        control was tokenized as a statement termination, which forced a 
  878.        line break:
  879.  
  880.             OLD:
  881.             foreach ( $i = 0;
  882.                 $i <= 10;
  883.                 $i += 2
  884.               )
  885.             {
  886.                 print "$i ";
  887.             }
  888.  
  889.             NEW:
  890.             foreach ( $i = 0 ; $i <= 10 ; $i += 2 ) {
  891.                 print "$i ";
  892.             }
  893.  
  894.       -Corrected a problem with reading config files, in which quote marks were not
  895.        stripped.  As a result, something like -wba="&& . || " would have the leading
  896.        quote attached to the && and not work correctly.  A workaround for older
  897.        versions is to place a space around all tokens within the quotes, like this:
  898.        -wba=" && . || "
  899.  
  900.       -Removed any existing space between a label and its ':'
  901.         OLD    : { }
  902.         NEW: { }
  903.        This was necessary because the label and its colon are a single token.
  904.  
  905.       -Corrected tokenization error for the following (highly non-recommended) 
  906.        construct:
  907.         $user = @vars[1] / 100;
  908.  
  909.       -Resolved cause of a difference between perltidy under perl v5.6.1 and
  910.       5.005_03; the problem was different behavior of \G regex position
  911.       marker(!)
  912.  
  913.   2001 10 20
  914.      -Corrected a bug in which a break was not being made after a full-line
  915.      comment within a short eval/sort/map/grep block.  A flag was not being
  916.      zeroed.  The syntax error check catches this.  Here is a snippet which
  917.      illustrates the bug:
  918.  
  919.             eval {
  920.                 #open Socket to Dispatcher
  921.                 $sock = &OpenSocket;
  922.             };
  923.  
  924.      The formatter mistakenly thought that it had found the following 
  925.      one-line block:
  926.  
  927.             eval {#open Socket to Dispatcher$sock = &OpenSocket; };
  928.  
  929.      The patch fixes this. Many thanks to Henry Story for reporting this bug.
  930.  
  931.      -Changes were made to help diagnose and resolve problems in a
  932.      .perltidyrc file: 
  933.        (1) processing of command parameters has been into two separate
  934.        batches so that any errors in a .perltidyrc file can be localized.  
  935.        (2) commands --help, --version, and as many of the --dump-xxx
  936.        commands are handled immediately, without any command line processing
  937.        at all.  
  938.        (3) Perltidy will ignore any commands in the .perltidyrc file which
  939.        cause immediate exit.  These are:  -h -v -ddf -dln -dop -dsn -dtt
  940.        -dwls -dwrs -ss.  Thanks to Wolfgang Weisselberg for helpful
  941.        suggestions regarding these updates.
  942.  
  943.      -Syntax check has been reinstated as default for MSWin32 systems.  This
  944.      way Windows 2000 users will get syntax check by default, which seems
  945.      like a better idea, since the number of Win 95/98 systems will be
  946.      decreasing over time.  Documentation revised to warn Windows 95/98
  947.      users about the problem with empty '&1'.  Too bad these systems
  948.      all report themselves as MSWin32.
  949.  
  950.   2001 10 16
  951.      -Fixed tokenization error in which a method call of the form
  952.  
  953.         Module::->new();
  954.  
  955.       got a space before the '::' like this:
  956.  
  957.         Module ::->new();
  958.  
  959.       Thanks to David Holden for reporting this.
  960.  
  961.      -Added -html control over pod text, using a new abbreviation 'pd'.  See
  962.      updated perl2web man page. The default is to use the color of a comment,
  963.      but italicized.  Old .css style sheets will need a new line for
  964.      .pd to use this.  The old color was the color of a string, and there
  965.      was no control.  
  966.  
  967.      -.css lines are now printed in sorted order.
  968.  
  969.      -Fixed interpolation problem where html files had '$input_file' as title
  970.      instead of actual input file name.  Thanks to Simon Perreault for finding
  971.      this and sending a patch, and also to Tobias Weber.
  972.  
  973.      -Breaks will now have the ':' placed at the start of a line, 
  974.      one per line by default because this shows logical structure
  975.      more clearly. This coding has been completely redone. Some 
  976.      examples of new ?/: formatting:
  977.  
  978.            OLD:
  979.                 wantarray ? map( $dir::cwd->lookup($_)->path, @_ ) :
  980.                   $dir::cwd->lookup( $_[0] )->path;
  981.  
  982.            NEW:
  983.                 wantarray 
  984.                   ? map( $dir::cwd->lookup($_)->path, @_ )
  985.                   : $dir::cwd->lookup( $_[0] )->path;
  986.  
  987.            OLD:
  988.                     $a = ( $b > 0 ) ? {
  989.                         a => 1,
  990.                         b => 2
  991.                     } : { a => 6, b => 8 };
  992.  
  993.            NEW:
  994.                     $a = ( $b > 0 )
  995.                       ? {
  996.                         a => 1,
  997.                         b => 2
  998.                       }
  999.                       : { a => 6, b => 8 };
  1000.  
  1001.         OLD: (-gnu):
  1002.         $self->note($self->{skip} ? "Hunk #$self->{hunk} ignored at 1.\n" :
  1003.                     "Hunk #$self->{hunk} failed--$@");
  1004.  
  1005.         NEW: (-gnu):
  1006.         $self->note($self->{skip} 
  1007.                     ? "Hunk #$self->{hunk} ignored at 1.\n"
  1008.                     : "Hunk #$self->{hunk} failed--$@");
  1009.  
  1010.         OLD:
  1011.             $which_search =
  1012.               $opts{"t"} ? 'title'   :
  1013.               $opts{"s"} ? 'subject' : $opts{"a"} ? 'author' : 'title';
  1014.  
  1015.         NEW:
  1016.             $which_search =
  1017.               $opts{"t"} ? 'title'
  1018.               : $opts{"s"} ? 'subject'
  1019.               : $opts{"a"} ? 'author'
  1020.               : 'title';
  1021.  
  1022.      You can use -wba=':' to recover the previous default which placed ':'
  1023.      at the end of a line.  Thanks to Michael Cartmell for helpful
  1024.      discussions and examples.  
  1025.  
  1026.      -Tokenizer updated to do syntax checking for matched ?/: pairs.  Also,
  1027.      the tokenizer now outputs a unique serial number for every balanced
  1028.      pair of brace types and ?/: pairs.  This greatly simplifies the
  1029.      formatter.
  1030.  
  1031.      -Long lines with repeated 'and', 'or', '&&', '||'  will now have
  1032.      one such item per line.  For example:
  1033.  
  1034.         OLD:
  1035.             if ( $opt_d || $opt_m || $opt_p || $opt_t || $opt_x
  1036.                 || ( -e $archive && $opt_r ) )
  1037.             {
  1038.                 ( $pAr, $pNames ) = readAr($archive);
  1039.             }
  1040.  
  1041.         NEW:
  1042.             if ( $opt_d
  1043.                 || $opt_m
  1044.                 || $opt_p
  1045.                 || $opt_t
  1046.                 || $opt_x
  1047.                 || ( -e $archive && $opt_r ) )
  1048.             {
  1049.                 ( $pAr, $pNames ) = readAr($archive);
  1050.             }
  1051.  
  1052.        OLD:
  1053.             if ( $vp->{X0} + 4 <= $x && $vp->{X0} + $vp->{W} - 4 >= $x
  1054.                 && $vp->{Y0} + 4 <= $y && $vp->{Y0} + $vp->{H} - 4 >= $y ) 
  1055.  
  1056.        NEW:
  1057.             if ( $vp->{X0} + 4 <= $x
  1058.                 && $vp->{X0} + $vp->{W} - 4 >= $x
  1059.                 && $vp->{Y0} + 4 <= $y
  1060.                 && $vp->{Y0} + $vp->{H} - 4 >= $y )
  1061.  
  1062.      -Long lines with multiple concatenated tokens will have concatenated
  1063.      terms (see below) placed one per line, except for short items.  For
  1064.      example:
  1065.  
  1066.        OLD:
  1067.             $report .=
  1068.               "Device type:" . $ib->family . "  ID:" . $ib->serial . "  CRC:"
  1069.               . $ib->crc . ": " . $ib->model() . "\n";
  1070.  
  1071.        NEW:
  1072.             $report .= "Device type:"
  1073.               . $ib->family . "  ID:"
  1074.               . $ib->serial . "  CRC:"
  1075.               . $ib->model()
  1076.               . $ib->crc . ": " . "\n";
  1077.  
  1078.      NOTE: at present 'short' means 8 characters or less.  There is a
  1079.      tentative flag to change this (-scl), but it is undocumented and
  1080.      is likely to be changed or removed later, so only use it for testing.  
  1081.      In the above example, the tokens "  ID:", "  CRC:", and "\n" are below
  1082.      this limit.  
  1083.  
  1084.      -If a line which is short enough to fit on a single line was
  1085.      nevertheless broken in the input file at a 'good' location (see below), 
  1086.      perltidy will try to retain a break.  For example, the following line
  1087.      will be formatted as:
  1088.  
  1089.         open SUM, "<$file"
  1090.           or die "Cannot open $file ($!)";
  1091.  
  1092.      if it was broken in the input file, and like this if not:
  1093.  
  1094.         open SUM, "<$file" or die "Cannot open $file ($!)";
  1095.  
  1096.      GOOD: 'good' location means before 'and','or','if','unless','&&','||'
  1097.  
  1098.      The reason perltidy does not just always break at these points is that if
  1099.      there are multiple, similar statements, this would preclude alignment.  So
  1100.      rather than check for this, perltidy just tries to follow the input style,
  1101.      in the hopes that the author made a good choice. Here is an example where 
  1102.      we might not want to break before each 'if':
  1103.  
  1104.         ($Locale, @Locale) = ($English, @English) if (@English > @Locale);
  1105.         ($Locale, @Locale) = ($German,  @German)  if (@German > @Locale);
  1106.         ($Locale, @Locale) = ($French,  @French)  if (@French > @Locale);
  1107.         ($Locale, @Locale) = ($Spanish, @Spanish) if (@Spanish > @Locale);
  1108.  
  1109.      -Added wildcard file expansion for systems with shells which lack this.
  1110.      Now 'perltidy *.pl' should work under MSDOS/Windows.  Thanks to Hugh Myers 
  1111.      for suggesting this.  This uses builtin glob() for now; I may change that.
  1112.  
  1113.      -Added new flag -sbl which, if specified, overrides the value of -bl
  1114.      for opening sub braces.  This allows formatting of this type:
  1115.  
  1116.      perltidy -sbl 
  1117.  
  1118.      sub foo
  1119.      {
  1120.         if (!defined($_[0])) {
  1121.             print("Hello, World\n");
  1122.         }
  1123.         else {
  1124.             print($_[0], "\n");
  1125.         }
  1126.      }
  1127.      Requested by Don Alexander.
  1128.  
  1129.      -Fixed minor parsing error which prevented a space after a $$ variable
  1130.      (pid) in some cases.  Thanks to Michael Cartmell for noting this.
  1131.      For example, 
  1132.        old: $$< 700 
  1133.        new: $$ < 700
  1134.  
  1135.      -Improved line break choices 'and' and 'or' to display logic better.
  1136.      For example:
  1137.  
  1138.         OLD:
  1139.             exists $self->{'build_dir'} and push @e,
  1140.               "Unwrapped into directory $self->{'build_dir'}";
  1141.  
  1142.         NEW:
  1143.             exists $self->{'build_dir'}
  1144.               and push @e, "Unwrapped into directory $self->{'build_dir'}";
  1145.  
  1146.      -Fixed error of multiple use of abbreviatioin '-dsc'.  -dsc remains 
  1147.      abbreviation for delete-side-comments; -dsm is new abbreviation for 
  1148.      delete-semicolons.
  1149.  
  1150.      -Corrected and updated 'usage' help routine.  Thanks to Slaven Rezic for 
  1151.      noting an error.
  1152.  
  1153.      -The default for Windows is, for now, not to do a 'perl -c' syntax
  1154.      check (but -syn will activate it).  This is because of problems with
  1155.      command.com.  James Freeman sent me a patch which tries to get around
  1156.      the problems, and it works in many cases, but testing revealed several
  1157.      issues that still need to be resolved.  So for now, the default is no
  1158.      syntax check for Windows.
  1159.  
  1160.      -I added a -T flag when doing perl -c syntax check.
  1161.      This is because I test it on a large number of scripts from sources
  1162.      unknown, and who knows what might be hidden in initialization blocks?
  1163.      Also, deactivated the syntax check if perltidy is run as root.  As a
  1164.      benign example, running the previous version of perltidy on the
  1165.      following file would cause it to disappear:
  1166.  
  1167.             BEGIN{
  1168.                     print "Bye, bye baby!\n";
  1169.                     unlink $0;
  1170.             }
  1171.         
  1172.      The new version will not let that happen.
  1173.  
  1174.      -I am contemplating (but have not yet implemented) making '-lp' the
  1175.      default indentation, because it is stable now and may be closer to how
  1176.      perl is commonly formatted.  This could be in the next release.  The
  1177.      reason that '-lp' was not the original default is that the coding for
  1178.      it was complex and not ready for the initial release of perltidy.  If
  1179.      anyone has any strong feelings about this, I'd like to hear.  The
  1180.      current default could always be recovered with the '-nlp' flag.  
  1181.  
  1182.   2001 09 03
  1183.      -html updates:
  1184.          - sub definition names are now specially colored, red by default.  
  1185.            The letter 'm' is used to identify them.
  1186.          - keyword 'sub' now has color of other keywords.
  1187.          - restored html keyword color to __END__ and __DATA__, which was 
  1188.            accidentally removed in the previous version.
  1189.  
  1190.      -A new -se (--standard-error-output) flag has been implemented and
  1191.      documented which causes all errors to be written to standard output
  1192.      instead of a .ERR file.
  1193.  
  1194.      -A new -w (--warning-output) flag has been implemented and documented
  1195.       which causes perltidy to output certain non-critical messages to the
  1196.       error output file, .ERR.  These include complaints about pod usage,
  1197.       for example.  The default is to not include these.
  1198.  
  1199.       NOTE: This replaces an undocumented -w=0 or --warning-level flag
  1200.       which was tentatively introduced in the previous version to avoid some
  1201.       unwanted messages.  The new default is the same as the old -w=0, so
  1202.       that is no longer needed. 
  1203.  
  1204.       -Improved syntax checking and corrected tokenization of functions such
  1205.       as rand, srand, sqrt, ...  These can accept either an operator or a term
  1206.       to their right.  This has been corrected.
  1207.  
  1208.      -Corrected tokenization of semicolon: testing of the previous update showed 
  1209.      that the semicolon in the following statement was being mis-tokenized.  That
  1210.      did no harm, other than adding an extra blank space, but has been corrected.
  1211.  
  1212.               for (sort {strcoll($a,$b);} keys %investments) {
  1213.                  ...
  1214.               }
  1215.  
  1216.      -New syntax check: after wasting 5 minutes trying to resolve a syntax
  1217.       error in which I had an extra terminal ';' in a complex for (;;) statement, 
  1218.       I spent a few more minutes adding a check for this in perltidy so it won't
  1219.       happen again.
  1220.  
  1221.      -The behavior of --break-before-subs (-bbs) and --break-before-blocks
  1222.      (-bbb) has been modified.  Also, a new control parameter,
  1223.      --long-block-line-count=n (-lbl=n) has been introduced to give more
  1224.      control on -bbb.  This was previously a hardwired value.  The reason
  1225.      for the change is to reduce the number of unwanted blank lines that
  1226.      perltidy introduces, and make it less erratic.  It's annoying to remove
  1227.      an unwanted blank line and have perltidy put it back.  The goal is to
  1228.      be able to sprinkle a few blank lines in that dense script you
  1229.      inherited from Bubba.  I did a lot of experimenting with different
  1230.      schemes for introducing blank lines before and after code blocks, and
  1231.      decided that there is no really good way to do it.  But I think the new
  1232.      scheme is an improvement.  You can always deactivate this with -nbbb.
  1233.      I've been meaning to work on this; thanks to Erik Thaysen for bringing
  1234.      it to my attention.
  1235.  
  1236.      -The .LOG file is seldom needed, and I get tired of deleting them, so
  1237.       they will now only be automatically saved if perltidy thinks that it
  1238.       made an error, which is almost never.  You can still force the logfile
  1239.       to be saved with -log or -g.
  1240.  
  1241.      -Improved method for computing number of columns in a table.  The old
  1242.      method always tried for an even number.  The new method allows odd
  1243.      numbers when it is obvious that a list is not a hash initialization
  1244.      list.
  1245.  
  1246.        old: my (
  1247.                  $name,       $xsargs, $parobjs, $optypes,
  1248.                  $hasp2child, $pmcode, $hdrcode, $inplacecode,
  1249.                  $globalnew,  $callcopy
  1250.               )
  1251.               = @_;
  1252.  
  1253.        new: my (
  1254.                  $name,   $xsargs,  $parobjs,     $optypes,   $hasp2child,
  1255.                  $pmcode, $hdrcode, $inplacecode, $globalnew, $callcopy
  1256.               )
  1257.               = @_;
  1258.  
  1259.      -I fiddled with the list threshold adjustment, and some small lists
  1260.      look better now.  Here is the change for one of the lists in test file
  1261.      'sparse.t':
  1262.      old:
  1263.        %units =
  1264.          ("in", "in", "pt", "pt", "pc", "pi", "mm", "mm", "cm", "cm", "\\hsize", "%",
  1265.            "\\vsize", "%", "\\textwidth", "%", "\\textheight", "%");
  1266.  
  1267.      new:
  1268.        %units = (
  1269.                   "in",      "in", "pt",          "pt", "pc",           "pi",
  1270.                   "mm",      "mm", "cm",          "cm", "\\hsize",      "%",
  1271.                   "\\vsize", "%",  "\\textwidth", "%",  "\\textheight", "%"
  1272.                   );
  1273.  
  1274.      -Improved -lp formatting at '=' sign.  A break was always being added after
  1275.      the '=' sign in a statement such as this, (to be sure there was enough room
  1276.      for the parameters):
  1277.  
  1278.      old: my $fee =
  1279.             CalcReserveFee(
  1280.                             $env,          $borrnum,
  1281.                             $biblionumber, $constraint,
  1282.                             $bibitems
  1283.                             );
  1284.  
  1285.      The updated version doesn't do this unless the space is really needed:
  1286.  
  1287.      new: my $fee = CalcReserveFee(
  1288.                                    $env,          $borrnum,
  1289.                                    $biblionumber, $constraint,
  1290.                                    $bibitems
  1291.                                    );
  1292.  
  1293.      -I updated the tokenizer to allow $#+ and $#-, which seem to be new to
  1294.      Perl 5.6.  Some experimenting with a recent version of Perl indicated
  1295.      that it allows these non-alphanumeric '$#' array maximum index
  1296.      varaibles: $#: $#- $#+ so I updated the parser accordingly.  Only $#:
  1297.      seems to be valid in older versions of Perl.
  1298.  
  1299.      -Fixed a rare formatting problem with -lp (and -gnu) which caused
  1300.      excessive indentation.
  1301.  
  1302.      -Many additional syntax checks have been added.
  1303.  
  1304.      -Revised method for testing here-doc target strings; the following
  1305.      was causing trouble with a regex test because of the '*' characters:
  1306.       print <<"*EOF*";
  1307.       bla bla
  1308.       *EOF*
  1309.      Perl seems to allow almost anything to be a here doc target, so an
  1310.      exact string comparison is now used.
  1311.  
  1312.      -Made update to allow underscores in binary numbers, like '0b1100_0000'.
  1313.  
  1314.      -Corrected problem with scanning certain module names; a blank space was 
  1315.      being inserted after 'warnings' in the following:
  1316.         use warnings::register;
  1317.      The problem was that warnings (and a couple of other key modules) were 
  1318.      being tokenized as keywords.  They should have just been identifiers.
  1319.  
  1320.      -Corrected tokenization of indirect objects after sort, system, and exec,
  1321.      after testing produced an incorrect error message for the following
  1322.      line of code:
  1323.         print sort $sortsubref @list;
  1324.  
  1325.      -Corrected minor problem where a line after a format had unwanted
  1326.      extra continuation indentation.  
  1327.  
  1328.      -Delete-block-comments (and -dac) now retain any leading hash-bang line
  1329.  
  1330.      -Update for -lp (and -gnu) to not align the leading '=' of a list
  1331.      with a previous '=', since this interferes with alignment of parameters.
  1332.  
  1333.       old:  my $hireDay = new Date;
  1334.             my $self    = {
  1335.                          firstName => undef,
  1336.                          lastName  => undef,
  1337.                          hireDay   => $hireDay
  1338.                          };
  1339.     
  1340.       new:  my $hireDay = new Date;
  1341.             my $self = {
  1342.                          firstName => undef,
  1343.                          lastName  => undef,
  1344.                          hireDay   => $hireDay
  1345.                          };
  1346.  
  1347.      -Modifications made to display tables more compactly when possible,
  1348.       without adding lines. For example,
  1349.       old:
  1350.                     '1', "I", '2', "II", '3', "III", '4', "IV",
  1351.                     '5', "V", '6', "VI", '7', "VII", '8', "VIII",
  1352.                     '9', "IX"
  1353.       new:
  1354.                     '1', "I",   '2', "II",   '3', "III",
  1355.                     '4', "IV",  '5', "V",    '6', "VI",
  1356.                     '7', "VII", '8', "VIII", '9', "IX"
  1357.  
  1358.      -Corrected minor bug in which -pt=2 did not keep the right paren tight
  1359.      around a '++' or '--' token, like this:
  1360.  
  1361.                 for ($i = 0 ; $i < length $key ; $i++ )
  1362.  
  1363.      The formatting for this should be, and now is: 
  1364.  
  1365.                 for ($i = 0 ; $i < length $key ; $i++)
  1366.  
  1367.      Thanks to Erik Thaysen for noting this.
  1368.  
  1369.      -Discovered a new bug involving here-docs during testing!  See BUGS.html.  
  1370.  
  1371.      -Finally fixed parsing of subroutine attributes (A Perl 5.6 feature).
  1372.      However, the attributes and prototypes must still be on the same line
  1373.      as the sub name.
  1374.  
  1375.   2001 07 31
  1376.      -Corrected minor, uncommon bug found during routine testing, in which a
  1377.      blank got inserted between a function name and its opening paren after
  1378.      a file test operator, but only in the case that the function had not
  1379.      been previously seen.  Perl uses the existance (or lack thereof) of 
  1380.      the blank to guess if it is a function call.  That is,
  1381.         if (-l pid_filename()) {
  1382.      became
  1383.         if (-l pid_filename ()) {
  1384.      which is a syntax error if pid_filename has not been seen by perl.
  1385.  
  1386.      -If the AutoLoader module is used, perltidy will continue formatting
  1387.      code after seeing an __END__ line.  Use -nlal to deactivate this feature.  
  1388.      Likewise, if the SelfLoader module is used, perltidy will continue 
  1389.      formatting code after seeing a __DATA__ line.  Use -nlsl to
  1390.      deactivate this feature.  Thanks to Slaven Rezic for this suggestion.
  1391.  
  1392.      -pod text after __END__ and __DATA__ is now identified by perltidy
  1393.      so that -dp works correctly.  Thanks to Slaven Rezic for this suggestion.
  1394.  
  1395.      -The first $VERSION line which might be eval'd by MakeMaker
  1396.      is now passed through unchanged.  Use -npvl to deactivate this feature.
  1397.      Thanks to Manfred Winter for this suggestion.
  1398.  
  1399.      -Improved indentation of nested parenthesized expressions.  Tests have
  1400.      given favorable results.  Thanks to Wolfgang Weisselberg for helpful
  1401.      examples.
  1402.  
  1403.   2001 07 23
  1404.      -Fixed a very rare problem in which an unwanted semicolon was inserted
  1405.      due to misidentification of anonymous hash reference curly as a code
  1406.      block curly.  (No instances of this have been reported; I discovered it
  1407.      during testing).  A workaround for older versions of perltidy is to use
  1408.      -nasc.
  1409.  
  1410.      -Added -icb (-indent-closing-brace) parameter to indent a brace which
  1411.      terminates a code block to the same level as the previous line.
  1412.      Suggested by Andrew Cutler.  For example, 
  1413.  
  1414.             if ($task) {
  1415.                 yyy();
  1416.                 }    # -icb
  1417.             else {
  1418.                 zzz();
  1419.                 }
  1420.  
  1421.      -Rewrote error message triggered by an unknown bareword in a print or
  1422.      printf filehandle position, and added flag -w=0 to prevent issuing this
  1423.      error message.  Suggested by Byron Jones.
  1424.  
  1425.      -Added modification to align a one-line 'if' block with similar
  1426.      following 'elsif' one-line blocks, like this:
  1427.           if    ( $something eq "simple" )  { &handle_simple }
  1428.           elsif ( $something eq "hard" )    { &handle_hard }
  1429.      (Suggested by  Wolfgang Weisselberg).
  1430.  
  1431.   2001 07 02
  1432.      -Eliminated all constants with leading underscores because perl 5.005_03
  1433.      does not support that.  For example, _SPACES changed to XX_SPACES.
  1434.      Thanks to kromJx for this update.
  1435.  
  1436.   2001 07 01
  1437.      -the directory of test files has been moved to a separate distribution
  1438.      file because it is getting large but is of little interest to most users.
  1439.      For the current distribution:
  1440.        perltidy-20010701.tgz        contains the source and docs for perltidy
  1441.        perltidy-20010701-test.tgz   contains the test files
  1442.  
  1443.      -fixed bug where temporary file perltidy.TMPI was not being deleted 
  1444.      when input was from stdin.
  1445.  
  1446.      -adjusted line break logic to not break after closing brace of an
  1447.      eval block (suggested by Boris Zentner).
  1448.  
  1449.      -added flag -gnu (--gnu-style) to give an approximation to the GNU
  1450.      style as sometimes applied to perl.  The programming style in GNU
  1451.      'automake' was used as a guide in setting the parameters; these
  1452.      parameters will probably be adjusted over time.
  1453.  
  1454.      -an empty code block now has one space for emphasis:
  1455.        if ( $cmd eq "bg_untested" ) {}    # old
  1456.        if ( $cmd eq "bg_untested" ) { }   # new
  1457.      If this bothers anyone, we could create a parameter.
  1458.  
  1459.      -the -bt (--brace-tightness) parameter has been split into two
  1460.      parameters to give more control. -bt now applies only to non-BLOCK
  1461.      braces, while a new parameter -bbt (block-brace-tightness) applies to
  1462.      curly braces which contain code BLOCKS. The default value is -bbt=0.
  1463.  
  1464.      -added flag -icp (--indent-closing-paren) which leaves a statment
  1465.      termination of the form );, };, or ]; indented with the same
  1466.      indentation as the previous line.  For example,
  1467.  
  1468.         @month_of_year = (          # default, or -nicp
  1469.             'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct',
  1470.             'Nov', 'Dec'
  1471.         );
  1472.  
  1473.         @month_of_year = (          # -icp
  1474.             'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct',
  1475.             'Nov', 'Dec'
  1476.             );
  1477.  
  1478.      -Vertical alignment updated to synchronize with tokens &&, ||,
  1479.      and, or, if, unless.  Allowable space before forcing
  1480.      resynchronization has been increased.  (Suggested by  Wolfgang
  1481.      Weisselberg).
  1482.  
  1483.      -html corrected to use -nohtml-bold-xxxxxxx or -nhbx to negate bold,
  1484.      and likewise -nohtml-italic-xxxxxxx or -nhbi to negate italic.  There
  1485.      was no way to negate these previously.  html documentation updated and
  1486.      corrected.  (Suggested by  Wolfgang Weisselberg).
  1487.  
  1488.      -Some modifications have been made which improve the -lp formatting in
  1489.      a few cases.
  1490.  
  1491.      -Perltidy now retains or creates a blank line after an =cut to keep
  1492.      podchecker happy (Suggested by Manfred H. Winter).  This appears to be
  1493.      a glitch in podchecker, but it was annoying.
  1494.  
  1495.   2001 06 17
  1496.      -Added -bli flag to give continuation indentation to braces, like this
  1497.  
  1498.             if ($bli_flag)
  1499.               {
  1500.                 extra_indentation();
  1501.               }
  1502.  
  1503.      -Corrected an error with the tab (-t) option which caused the last line
  1504.      of a multi-line quote to receive a leading tab.  This error was in
  1505.      version 2001 06 08  but not 2001 04 06.  If you formatted a script
  1506.      with -t with this version, please check it by running once with the
  1507.      -chk flag and perltidy will scan for this possible error.
  1508.  
  1509.      -Corrected an invalid pattern (\R should have been just R), changed
  1510.      $^W =1 to BEGIN {$^W=1} to use warnings in compile phase, and corrected
  1511.      several unnecessary 'my' declarations. Many thanks to Wolfgang Weisselberg,
  1512.      2001-06-12, for catching these errors.
  1513.  
  1514.      -A '-bar' flag has been added to require braces to always be on the
  1515.      right, even for multi-line if and foreach statements.  For example,
  1516.      the default formatting of a long if statement would be:
  1517.  
  1518.             if ($bigwasteofspace1 && $bigwasteofspace2
  1519.               || $bigwasteofspace3 && $bigwasteofspace4)
  1520.             {
  1521.                 bigwastoftime();
  1522.             }
  1523.  
  1524.      With -bar, the formatting is:
  1525.  
  1526.             if ($bigwasteofspace1 && $bigwasteofspace2
  1527.               || $bigwasteofspace3 && $bigwasteofspace4) {
  1528.                 bigwastoftime();
  1529.             }
  1530.      Suggested by Eli Fidler 2001-06-11.
  1531.  
  1532.      -Uploaded perltidy to sourceforge cvs 2001-06-10.
  1533.  
  1534.      -An '-lp' flag (--line-up-parentheses) has been added which causes lists
  1535.      to be indented with extra indentation in the manner sometimes
  1536.      associated with emacs or the GNU suggestions.  Thanks to Ian Stuart for
  1537.      this suggestion and for extensive help in testing it. 
  1538.  
  1539.      -Subroutine call parameter lists are now formatted as other lists.
  1540.      This should improve formatting of tables being passed via subroutine
  1541.      calls.  This will also cause full indentation ('-i=n, default n= 4) of
  1542.      continued parameter list lines rather than just the number of spaces
  1543.      given with -ci=n, default n=2.
  1544.  
  1545.      -Added support for hanging side comments.  Perltidy identifies a hanging
  1546.      side comment as a comment immediately following a line with a side
  1547.      comment or another hanging side comment.  This should work in most
  1548.      cases.  It can be deactivated with --no-hanging-side-comments (-nhsc).
  1549.      The manual has been updated to discuss this.  Suggested by Brad
  1550.      Eisenberg some time ago, and finally implemented.
  1551.  
  1552.   2001 06 08
  1553.      -fixed problem with parsing command parameters containing quoted
  1554.      strings in .perltidyrc files. (Reported by Roger Espel Llima 2001-06-07).
  1555.  
  1556.      -added two command line flags, --want-break-after and 
  1557.      --want-break-before, which allow changing whether perltidy
  1558.      breaks lines before or after any operators.  Please see the revised 
  1559.      man pages for details.
  1560.  
  1561.      -added system-wide configuration file capability.
  1562.      If perltidy does not find a .perltidyrc command line file in
  1563.      the current directory, nor in the home directory, it now looks
  1564.      for '/usr/local/etc/perltidyrc' and then for '/etc/perltidyrc'.
  1565.      (Suggested by Roger Espel Llima 2001-05-31).
  1566.  
  1567.      -fixed problem in which spaces were trimmed from lines of a multi-line
  1568.      quote. (Reported by Roger Espel Llima 2001-05-30).  This is an 
  1569.      uncommon situation, but serious, because it could conceivably change
  1570.      the proper function of a script.
  1571.  
  1572.      -fixed problem in which a semicolon was incorrectly added within 
  1573.      an anonymous hash.  (Reported by A.C. Yardley, 2001-5-23).
  1574.      (You would know if this happened, because perl would give a syntax
  1575.      error for the resulting script).
  1576.  
  1577.      -fixed problem in which an incorrect error message was produced
  1578.       after a version number on a 'use' line, like this ( Reported 
  1579.       by Andres Kroonmaa, 2001-5-14):
  1580.  
  1581.                   use CGI 2.42 qw(fatalsToBrowser);
  1582.  
  1583.       Other than the extraneous error message, this bug was harmless.
  1584.  
  1585.   2001 04 06
  1586.      -fixed serious bug in which the last line of some multi-line quotes or
  1587.       patterns was given continuation indentation spaces.  This may make
  1588.       a pattern incorrect unless it uses the /x modifier.  To find
  1589.       instances of this error in scripts which have been formatted with
  1590.       earlier versions of perltidy, run with the -chk flag, which has
  1591.       been added for this purpose (SLH, 2001-04-05).
  1592.  
  1593.       ** So, please check previously formatted scripts by running with -chk
  1594.       at least once **
  1595.  
  1596.      -continuation indentation has been reprogrammed to be hierarchical, 
  1597.       which improves deeply nested structures.
  1598.  
  1599.      -fixed problem with undefined value in list formatting (reported by Michael
  1600.       Langner 2001-04-05)
  1601.  
  1602.      -Switched to graphical display of nesting in .LOG files.  If an
  1603.       old format string was "(1 [0 {2", the new string is "{{(".  This
  1604.       is easier to read and also shows the order of nesting.
  1605.  
  1606.      -added outdenting of cuddled paren structures, like  ")->pack(".
  1607.  
  1608.      -added line break and outdenting of ')->' so that instead of
  1609.  
  1610.             $mw->Label(
  1611.               -text   => "perltidy",
  1612.               -relief => 'ridge')->pack;
  1613.  
  1614.       the current default is:
  1615.  
  1616.             $mw->Label(
  1617.               -text   => "perltidy",
  1618.               -relief => 'ridge'
  1619.             )->pack;
  1620.  
  1621.       (requested by Michael Langner 2001-03-31; in the future this could 
  1622.       be controlled by a command-line parameter).
  1623.  
  1624.      -revised list indentation logic, so that lists following an assignment
  1625.       operator get one full indentation level, rather than just continuation 
  1626.       indentation.  Also corrected some minor glitches in the continuation 
  1627.       indentation logic. 
  1628.  
  1629.      -Fixed problem with unwanted continuation indentation after a blank line 
  1630.      (reported by Erik Thaysen 2001-03-28):
  1631.  
  1632.      -minor update to avoid stranding a single '(' on one line
  1633.  
  1634.   2001 03 28:
  1635.      -corrected serious error tokenizing filehandles, in which a sub call 
  1636.      after a print or printf, like this:
  1637.         print usage() and exit;
  1638.      became this:
  1639.         print usage () and exit;
  1640.      Unfortunately, this converts 'usage' to a filehandle.  To fix this, rerun
  1641.      perltidy; it will look for this situation and issue a warning. 
  1642.  
  1643.      -fixed another cuddled-else formatting bug (Reported by Craig Bourne)
  1644.  
  1645.      -added several diagnostic --dump routines
  1646.  
  1647.      -added token-level whitespace controls (suggested by Hans Ecke)
  1648.  
  1649.   2001 03 23:
  1650.      -added support for special variables of the form ${^WANT_BITS}
  1651.  
  1652.      -space added between scalar and left paren in 'for' and 'foreach' loops,
  1653.       (suggestion by Michael Cartmell):
  1654.  
  1655.         for $i( 1 .. 20 )   # old
  1656.         for $i ( 1 .. 20 )   # new
  1657.  
  1658.      -html now outputs cascading style sheets (thanks to suggestion from
  1659.       Hans Ecke)
  1660.  
  1661.      -flags -o and -st now work with -html
  1662.  
  1663.      -added missing -html documentation for comments (noted by Alex Izvorski)
  1664.  
  1665.      -support for VMS added (thanks to Michael Cartmell for code patches and 
  1666.        testing)
  1667.  
  1668.      -v-strings implemented (noted by Hans Ecke and Michael Cartmell; extensive
  1669.        testing by Michael Cartmell)
  1670.  
  1671.      -fixed problem where operand may be empty at line 3970 
  1672.       (\b should be just b in lines 3970, 3973) (Thanks to Erik Thaysen, 
  1673.       Keith Marshall for bug reports)
  1674.  
  1675.      -fixed -ce bug (cuddled else), where lines like '} else {' were indented
  1676.       (Thanks to Shawn Stepper and Rick Measham for reporting this)
  1677.  
  1678.   2001 03 04:
  1679.      -fixed undefined value in line 153 (only worked with -I set)
  1680.      (Thanks to Mike Stok, Phantom of the Opcodes, Ian Ehrenwald, and others)
  1681.  
  1682.      -fixed undefined value in line 1069 (filehandle problem with perl versions <
  1683.      5.6) (Thanks to Yuri Leikind, Mike Stok, Michael Holve, Jeff Kolber)
  1684.  
  1685.   2001 03 03:
  1686.      -Initial announcement at freshmeat.net; started Change Log
  1687.      (Unfortunately this version was DOA, but it was fixed the next day)
  1688.